package com.dflc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dflc.entity.po.TLog;
import com.dflc.service.TLogService;
import com.dflc.mapper.TLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
* @author 86158
* @description 针对表【t_log(操作日志)】的数据库操作Service实现
* @createDate 2025-01-06 15:27:59
*/
@Service
@Slf4j
public class TLogServiceImpl extends ServiceImpl<TLogMapper, TLog>
    implements TLogService{


    @Override
    @Async
    public void saveLog(TLog tLog) {
        try {
            this.save(tLog);
        }catch (Exception e){
            log.error("保存日志失败",e.getMessage());
        }
    }
}




